package com.yunji.framework_template.books.orm.persistence.mapper;

import com.yunji.framework_template.books.orm.persistence.model.BooksChapters;
import com.yunji.framework_template.common.web.Page;
import java.util.List;

public interface BooksChaptersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BooksChapters record);

    int insertSelective(BooksChapters record);

    BooksChapters selectByPrimaryKey(Integer id);
    
    BooksChapters selectByBookIdAndChapterIndex(BooksChapters record);
    
    List<BooksChapters> selectByBookId(Integer bookId);

    int updateByPrimaryKeySelective(BooksChapters record);

    int updateByPrimaryKeyWithBLOBs(BooksChapters record);

    int updateByPrimaryKey(BooksChapters record);
    
    int updateReadTimesByPrimaryKey(BooksChapters record);
    
    int updateLikeTimesByPrimaryKey(BooksChapters record);
    
    int updateCommentTimesByPrimaryKey(BooksChapters record);

    List<BooksChapters> selectByCondition(BooksChapters record);

    List<BooksChapters> selectAll();

    List<BooksChapters> selectByPage(Page page);

    Integer count(BooksChapters record);

    int deleteByCondition(BooksChapters record);
}